http://www.wavecom.com/forum

Release version:
3.04

Sample - FTP

Changes

Dependencies

This sample depends on the following libraries :

Application Description

This application provides a command to get or put a file on a FTP server. The IP connection settings are provided by the IPConnect library commands.

The +FTP command start the GET/PUT operation, and is available as soon as the IP connection is active.

 

  AT+FTP (FTP get/put command)
CommandAnswers
AT+FTP?+FTP: <Mode> , <State>
OK
AT+FTP=?+FTP: (0-1) , (120) , (120)
OK
AT+FTP= <Mode> , <FileName> , <FilePath> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
Mode0-10 for FTP Get
1 for FTP Put
mandatory
State0-10 for Idle mode
1 for FTP processing mode
NA
FileName120file name on the FTP servermandatory
FilePath120file relative path on the FTP servermandatory

With FTP get, if the process is successful, the file is displayed on the serial link.

With FTP put, if the connection is successful, test file datas are read from the serial link, until Ctrl-Z key is pressed.

The FTP process result is displayed in the following unsolicited result :

where Result is the TCPIP library result code. Please refer to the TCPIP documentation for more information.


Updated : Thu Apr 27 14:12:36 CEST 2006